package cn.yuanqiao.archive.wenjianzhengli.domain;

import cn.yuanqiao.common.annotation.Excel;
import cn.yuanqiao.common.annotation.IdAnnotation;
import cn.yuanqiao.common.utils.StringUtils;
import cn.yuanqiao.common.utils.SecurityUtils;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @author zjj
 * @date 2023/8/9
 */
public class Yqdatransdoc {
    private static final long serialVersionUID = 1L;

    public static final String BIGTABLENAME = "_YQDATRANSDOC";

    public Yqdatransdoc() {
        //String tenantCode = SecurityUtils.getTenantCode();
        String tenantCode = "BZZZ";
        if(StringUtils.isEmpty(tenantCode)){
            //throw new ServiceException("TenantCode is null");
        }else {
            this.tableName = tenantCode.toUpperCase()+BIGTABLENAME;
        }
    }

    private String tableName;

    @IdAnnotation
    private Long transId;

    //@Excel(name = "电子文件ID",sort = 1)
    private Long docId;
    @Excel(name = "转换时间",sort = 4,dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date transTime;
    @Excel(name = "转换后路径",sort = 5)
    private String transUrl;
    @Excel(name = "转换服务名称",sort = 6)
    private String transType;
    //@Excel(name = "状态",readConverterExp = "0=失败,1=成功",sort = 7)
    private Integer state;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public Long getTransId() {
        return transId;
    }

    public void setTransId(Long transId) {
        this.transId = transId;
    }

    public Long getDocId() {
        return docId;
    }

    public void setDocId(Long docId) {
        this.docId = docId;
    }

    public Date getTransTime() {
        return transTime;
    }

    public void setTransTime(Date transTime) {
        this.transTime = transTime;
    }

    public String getTransUrl() {
        return transUrl;
    }

    public void setTransUrl(String transUrl) {
        this.transUrl = transUrl;
    }

    public String getTransType() {
        return transType;
    }

    public void setTransType(String transType) {
        this.transType = transType;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
}
